package com.cardone.context;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * Created by Administrator on 2015/3/16.
 */
@Getter
@Setter
@Accessors(chain = true)
public class CodeException extends RuntimeException {
    /**
     * 代码
     */
    private String code;

    public CodeException() {
        super();
    }

    public CodeException(final String code) {
        this.code = code;
    }

    public CodeException(final String code, final Throwable cause) {
        super(cause);
        this.code = code;
    }
}
